{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <style>
        .table-border{border:1px solid #7f8c8d}
        .table-border th,.table-border td{border:1px solid #7f8c8d}
    </style>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
           </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count ?? '0'}</strong> 条
        </span>
    </div>
    <br>
    <?php use think\Db;?>
    {if !empty($order)}
        {foreach name="order" item="vo8" }
            <table class="table table-border table-bordered table-hover" style="border: 1px solid #7f8c8d">
                <tbody>
                <tr>
                    <td colspan="2" style="height: 30px;">
                        花儿评价:
                        {php}
                            switch($vo8['is_review']){
                                case 0: echo '未评价'; break;
                                case 1: echo '好评'; break;
                                case 2: echo '差评'; break;
                                default: echo '未评价';
                            }
                        {/php}
                    </td>
                </tr>
                <tr>
                    <td style="width: 60%;">
                        <!-- 评价内容 -->
                        <p>
                            <span style="color: #0b97c4;">用户评价</span>:{$vo8['comment'] | default='用户未评价'}
                        </p>
                        <br>
                        <!-- 评价图片 -->
                        <p>
                            {php}
                                if(empty($vo8['img_src'])){

                                }else{
                                     $imgSrc = explode(',',$vo8['img_src']);
                                    if(!empty($imgSrc) && is_array($imgSrc)){
                                        static $i=1;
                                        foreach($imgSrc as $vals){
                                        echo "<img class='radius img-responsive' style='width: 140px;height: 140px;padding-left: 3px' src='$vals' alt='点评图片'>";
                                        $i++;
                                        if($i == 5){
                                        echo '<br>';
                                        $i = 1;
                                        }
                                    }
                                    }

                                }

                            {/php}
                        <!-- 用户追评 -->
                        <p>
                            {if !empty($vo8['review'])}
                            <span style="color: #0b97c4;">用户追评</span>:{$vo8.review | default='用户尚未追评'}
                            {/if}
                        </p>
                    </td>
                    <td style="width: 40%;" valign="top">
                        <p>产品名称: {$vo8.title}</p>
                        <p>供应商: {$vo8.shop_name}</p>
                        <p>昵称:
                            {if !empty($vo8['user_name'])}
                                {$vo8.user_name}
                            {else /}
                             {$vo8.booking_people_name}
                            {/if}
                        </p>
                        <p>手机号码: {$vo8.booking_people_phone}</p>
                        <p>订单号: {$vo8.order_id}</p> <!-- 即订单表里order_id -->
                        <p>来源:
                            {if !empty($vo8['user_name'])}
                                    {$vo8.platform}
                                {else /}
                                {$vo8.platform_name}
                            {/if}
                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="height: 30px;">
                        点评时间:
                        {if !empty($vo8['create_time'])}
                            {$vo8.create_time | date='Y-m-d H:i:s',###}
                        {/if}
                    </td>
                </tr>
                </tbody>
            </table>
            <br>
        {/foreach}
    {/if}
    <br>
    <script type="text/javascript" src="__LIB__/My97DatePicker/WdatePicker.js"></script>

</div>
{/block}

